package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_num")
public class Num {
    @NotNull(message = "ID不能为空")
    @TableId(type = IdType.AUTO)
    public Long numId;
    @NotBlank(message = "请输入num")
    private String num;
    @NotBlank(message = "请输入tgId")
    private String tgId;
}
